class Person:
    def __init__(self, name, weight):
        self.name = name
        self.weight = weight

    def run(self):
        self.weight -= 0.5
        print("%s 喜欢跑步, 跑步后体重 %.2f" % (self.name, self.weight))

    def eat(self):
        self.weight += 1
        print("%s 在吃饭，饭后体重 %.2f" % (self.name, self.weight))

    def __str__(self):
        return "姓名：%s  体重：%.2f 公斤" % (self.name, self.weight)

    def __del__(self):
        print(self.name, " 内存回收")


xiaoming = Person("小明", 65.2)
print(xiaoming)
xiaoming.run()
xiaoming.eat()
xiaoming.run()

print("*" * 25)

xiaomei = Person("小美", 50)
print(xiaomei)
xiaomei.eat()
xiaomei.run()
